package com.schoolegard.services;

import java.util.List;

import com.schoolgard.entitybean.JobMode;
import com.schoolgard.entitybean.JobStatus;
import com.schoolgard.entitybean.UpgradeToDevice;

public interface UpgradeToDeviceService {

	/**
	 * 查找所有UpgradeToDevice
	 * @return
	 */
	public List<UpgradeToDevice> findAll();
	
	/**
	 * 查找所有JobStatus数据
	 * @return
	 */
	public List<JobStatus> findJobStatus();
	
	/**
	 * 查找所有jobMode数据
	 * @return
	 */
	public List<JobMode> findJobMode();
	
	/**
	 * 查找JobMode
	 * @param modeId
	 * @return
	 */
	public JobMode findJobModeById(Long modeId);
	
	/**
	 * 查找JobStatus
	 * @param statusId
	 * @return
	 */
	public JobStatus findjobStatusById(Long statusId);
	
	/**
	 * 保存或者更新
	 * @param UpgradeToDevice
	 */
	public void saveOrUpdate(UpgradeToDevice upgradeToDevice);
	
	/**
	 * 根据id查找UpgradeToDevice
	 * @param id
	 * @return
	 */
	public UpgradeToDevice findById(Long id);
	
	/**
	 * 删除记录
	 * @param id
	 */
	public void delete(Long id);

	public void saveAll(List<UpgradeToDevice> utds);
}
